#include "GBMors.h"
#include "reg52.h" 
#include "intrins.h"
sbit GSRCLK = P3^6;
sbit GRCLK = P3^5;
sbit GSER = P3^4;
void _74H595_send(u8 dat){
	u8  a;
	GSRCLK = 0;
	GRCLK = 0;
	for(a = 0; a < 8; a ++){
		GSER = dat >> 7;
		dat<<=1;
		GSRCLK = 1;
		//RCLK = 0;
		_nop_();
		_nop_();
		GSRCLK = 0;
	}
		GRCLK = 1;
		_nop_();
		_nop_();
		GRCLK = 0;
}